package IC.Types;


public class MethodType extends Type {

	private String methodName;
	private Type returnType;
	private Type[] paramTypes;

	public MethodType(int id, String name, Type returnType, Type[] paramTypes) {
		super(id);
		this.methodName = name;
		this.returnType = returnType;
		this.paramTypes = paramTypes;
	}

	public String getName() {
		return methodName;
	}

	public Type getReturnType() {
		return returnType;
	}

	public Type[] getParamTypes() {
		return paramTypes;
	}

	public String getStringForTypeTable(){
		return id + ": Method type: " + getName();
	}

	public String toString(){
		return getName();

	}
}
